import { FC } from "react"

import { SFormItem } from "@/components/common"
import StyleSelect from "@/components/common/styleSelect"
import { useLocale } from "@/locales"

const AgentAndLossRakingDimensionSelect: FC<any> = ({ setFieldValue }) => {
	const { formatMessage } = useLocale()
	//老项目中的设置
	const options = [
		{ label: formatMessage({ id: "report.alr_dropdownValue1" }), value: 1 },
		{ label: formatMessage({ id: "report.alr_dropdownValue2" }), value: 2 }
	]

	return (
		<SFormItem name="teamType">
			<label>{formatMessage({ id: "report.alr_dropdownLabel" })} &nbsp;</label>
			<StyleSelect
				onChange={value => setFieldValue("teamType", value)}
				defaultValue={options[0].value}
				options={options}
				style={{ width: "220px" }}
				placeholder={formatMessage({ id: "label.select_all" })}
			/>
		</SFormItem>
	)
}

export default AgentAndLossRakingDimensionSelect
